package com.websocet.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.websocet.domain.SysUser;
import com.websocet.mapper.SysUserMapper;
import com.websocet.service.SysUserService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
* @author poke
* @description 针对表【sys_user(用户信息表)】的数据库操作Service实现
* @createDate 2023-01-31 21:26:54
*/
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser>
    implements SysUserService {

    @Override
    @Async
    public String test() {
        System.out.println("异步线程开始");
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("异步线程开始");
        return "3s";
    }
}




